<template>
  <div>
    <!-- 收藏页面头部 -->
    <van-nav-bar
      title="房屋管理"
      left-arrow
    >
      <template #left>
        <van-icon  name="arrow-left" @click="$router.back()"/>
      </template>
    </van-nav-bar>

    <div class="main-box" >
      <card-list  :obj="item" v-for="item in list" :key="item.houseCode"></card-list>
    </div>

  </div>
</template>

<script>
import { publishedhouse } from '@/api/user'
import CardList from '../../components/CardList.vue'
export default {
  components: { CardList },
  data () {
    return {
      list: [],
      loading: false,
      finished: false
    }
  },

  created () {
    this.getpublishedhouse()
  },

  methods: {
    async getpublishedhouse () {
      const res = await publishedhouse()
      this.list = res.data.body
    },
    dsdada () {
      console.log(1)
    }
  }
}
</script>

<style scoped lang='less'>

</style>
